package com.hope.hotel.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hope.hotel.entity.po.Rooms;
import com.hope.hotel.entity.vo.RoomTypeStatsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 客房Mapper接口
 * </p>
 *
 * @author author
 * @since 2025-05-30
 */
@Mapper
public interface RoomsMapper extends BaseMapper<Rooms> {

    /**
     * 获取房型订单分布统计
     */
    List<RoomTypeStatsVO> getRoomTypeBookingStats(@Param("hotelId") Long hotelId);
}
